{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
<style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "周次"; }
			#mytable td:nth-of-type(2):before { content: "教师"; }
			#mytable td:nth-of-type(3):before { content: "日期"; }
			#mytable td:nth-of-type(4):before { content: "星期"; }
			#mytable td:nth-of-type(5):before { content: "节次"; }
			#mytable td:nth-of-type(6):before { content: "班级"; }
			#mytable td:nth-of-type(7):before { content: "教学内容"; }
			#mytable td:nth-of-type(8):before { content: "科目"; }
			#mytable td:nth-of-type(9):before { content: "备注"; }
			#mytable td:nth-of-type(10):before { content: "操作"; }
        }		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="">	
                <div class="box-header with-border">
                    <span class="fa fa-folder-open" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">公开课安排表</p>
                    <a href="index.php?a=open.updateall" class="btn btn-info btn-sm" style="float:right;">批量修改</a>
					<a href="index.php?a=open.openadd" class="btn btn-primary btn-sm" style="float:right;  margin-right:8px; margin-left:8px;">新 增</a>
                    <a href="index.php?a=open.outdata" class="btn btn-warning btn-sm" style="float:right;">导 出</a>
                </div>
                <div class="box-body">
                    <h4 class="text-center">{%$semester_data.semester_name%}</h4>
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style="background-color:#fcb53f;">
									    <td>周次</td>
                                        <td>教师</td>
                                        <td>日期</td>
                                        <td>星期</td>
										<td>节次</td>
										<td>班级</td>
                                        <td>教学内容</td>
										<td>科目</td>
										<td>备注</td>
                                        <td width="130">操作</td>
                                    </tr>	
                                </thead>
                                <tbody>
								{%foreach from=$open_list key=key item=value%}
                                    <tr>
									    <td>{%$value.open_week_num%}</td>
                                        <td>{%$value.staff_name%}</td>
                                        <td>{%$value.open_time%}</td>
                                        <td>{%$value.open_week%}</td>
										<td>{%$value.open_num%}</td>
										<td>{%$value.class_name%}</td>
                                        <td>{%$value.open_content%}</td>
										<td>{%$value.subject_name%}</td>
										<td>{%$value.open_remark%}</td>
                                        <td>
                                        	  <a href="index.php?a=open.openupdate&open_id={%$value.open_id%}" class="btn btn-warning btn-sm"  title="修改"> <i class="fa fa-edit (alias)"></i></a>
											  <a href="index.php?a=open.opendel&open_id={%$value.open_id%}" onclick="if(confirm('警告！确认删除信息?')==false)return false;"class="btn btn-danger btn-sm"  title="删除"><i class="fa fa-trash"></i></a>
                                        </td>
                                    </tr>
								 {%/foreach%}
                                   
                            </tbody>
                        </table>
				   </div><!--box-body -->
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
